#include "Clog.hpp"
#include "Cutil.hpp"
#include "Config.hpp"
#include "Cdata.hpp"
#include "Chot.hpp"
#include "Cserver.hpp"
#include <thread>
Hxy_Cloud::DataManager *_data ;

void HotManager()
{
    Hxy_Cloud::HotManager hot;
    hot.RunModule();
}

void server()
{
    Hxy_Cloud::Server server;
    server.RunModule();
}

int main(int argc,char* argv[])
{
    _data = new Hxy_Cloud::DataManager();

    std::thread hotthread(HotManager);
    std::thread svrthread(server);
    hotthread.join();
    svrthread.join();
    return 0;
}